<template>
  <div class="add-button">
    <el-button type="primary" icon="el-icon-plus" @click="addButton" :disabled="isDisable"></el-button>
  </div>
</template>

<script>
  export default {
    props: {
      addIndex: {
        type: String,
        default: ""
      },
      isDisable: {
        type: Boolean,
        default: true
      },
    },
    created() {},
    methods: {
      addButton() {
        this.$emit("addFun", this.addIndex);
      },
    }
  }
</script>

<style>

</style>